import Layout from '@/views/layout/index.vue'

export const system = {
  path: '/system',
  component: Layout,
  redirect: '/system/website',
  meta: { title: '管控系统', icon: 'Setting' },
  children: [
    {
      path: 'website',
      component: () => import('@/views/system/website.vue'),
      name: 'Website',
      meta: { title: '网站管理', icon: 'Postcard' }
    }
  ]
}

export const video = {
  path: '/manager',
  component: Layout,
  redirect: '/manager/distribution',
  meta: { title: '采集器管理', icon: 'Film' },
  children: [
    {
      path: 'state',
      component: () => import('@/views/manager/state.vue'),
      name: 'managerState',
      meta: { title: '采集器状态', icon: 'Memo' }
    },
    {
      path: 'distribution',
      component: () => import('@/views/manager/distribution.vue'),
      name: 'managerDistribution',
      meta: { title: '任务下发', icon: 'Files' }
    },
    {
      path: 'distributionHistory',
      component: () => import('@/views/manager/distributionHistory.vue'),
      name: 'distributionHistory',
      meta: { title: '历史任务', icon: 'Files' }
    },
    {
      path: 'ipAddress',
      component: () => import('@/views/manager/ipAddress.vue'),
      name: 'managerIpAddress',
      meta: { title: 'IP地址管理', icon: 'Files' }
    }
  ]
}

// menu route
export const dashboard = {
  path: '/dashboard',
  component: Layout,
  redirect: '/dashboard',
  meta: { title: '数据报表', icon: 'Film' },
  children: [
    {
      path: 'dashboard',
      component: () => import('@/views/dashboard/dashborad.vue'),
      name: 'Dashboard',
      meta: { title: '流量概览', icon: 'Odometer' }
    },
    {
      path: 'flowDetail',
      component: () => import('@/views/dashboard/flowDetail.vue'),
      name: 'flowDetail',
      meta: { title: '流量统计', icon: 'Odometer' }
    }
  ]
}
